/**
 * Created by huanggw on 2015/11/7.
 */
function createXMLHttpRequest(){
    var objXMLHttp;
    if(window.XMLHttpRequest){
        objXMLHttp = new XMLHttpRequest();
    }
    //对于IE浏览器
    else{
        var MSXML = ['MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'];
        for(var i = 0; n< MSXML.length; i++){
            try{
                objXMLHttp = new ActiveXObject(MSXML[i]);
                break;
            }catch(e){
                alert("fail to create XMLHttpRequest");
            }
        }
    }
    return objXMLHttp;
}

var xhr = createXMLHttpRequest();
//var host = "http://localhost:3000"; ////http://schoolgate.oschina.mopaasapp.com
var host = "http://schoolgate3d.tiger.mopaasapp.com/";